import os

# My os is Windows 7 ,change this to your os.name
if os.name == 'nt':
    DEBUG = True
else:
    DEBUG = False

TEMPLATE_DEBUG = DEBUG

TIME_ZONE = 'Asia/Shanghai'
#TIME_ZONE = 'PRC'

LANGUAGE_CODE = 'zh-cn'

SITE_ID = 1
USE_I18N = True

SESSION_ENGINE = 'django.contrib.sessions.backends.cache'

DATABASE_ENGINE = 'appengine'
CACHE_BACKEND = 'memcached://'
CACHE_MIDDLEWARE_KEY_PREFIX = '_cache_'
# Make this unique, and don't share it with anybody.
SECRET_KEY = '0#lg)78qn3povbco0w1vgfbgmpw)h%beop)ytch_5c=r%em9k7'

TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
#     'django.template.loaders.eggs.load_template_source',
)

MIDDLEWARE_CLASSES = (
    #'django.middleware.cache.CacheMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
#    'django.contrib.auth.middleware.AuthenticationMiddleware',
)

ROOT_URLCONF = 'urls'

ROOT_PATH = os.path.dirname(__file__)
TEMPLATE_DIRS = (
    ROOT_PATH + '/templates',
)

INSTALLED_APPS = (
#    'django.contrib.auth',
#    'django.contrib.contenttypes',
#    'django.contrib.sessions',
#    'django.contrib.sites',
    'django.contrib.sitemaps',
    'django.contrib.humanize',
    'appengine_django',
    'blog',
)
